public class ZombieTest {
    public static void main(String[] args) {
        FlagZombie flagZombie = new FlagZombie();
        flagZombie.display();
        flagZombie.attack();
        flagZombie.move();
    }
}
//抽象类
abstract class AbstractZombie{
    //抽象方法
    public abstract void display();
    public void attack(){
        System.out.println("咬");
    }
    public void move(){
        System.out.println("一步一步移动");
    }
}
//普通僵尸
class NormalZombie extends AbstractZombie{
    @Override
    public void display() {
        System.out.println("普通僵尸");
    }
}
//棋手僵尸
class FlagZombie extends AbstractZombie{
    @Override
    public void display() {
        System.out.println("我是棋手僵尸");
    }
}
